﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"
    CodeFile="WFRunAgent.aspx.vb" Inherits="WFRunAgent" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:HiddenField ID="hiUID" runat="server" />
            <asp:HiddenField ID="hidbName" runat="server" />
            <asp:ObjectDataSource ID="dbWFAgent" runat="server" SelectMethod="GetAgentUID" TypeName="WorkFlow.BBL.WFAgntBBL">
                <SelectParameters>
                    <asp:ControlParameter ControlID="hiUID" ConvertEmptyStringToNull="False" Name="Agent"
                        PropertyName="Value" Type="String" />
                    <asp:ControlParameter ControlID="hidbName" ConvertEmptyStringToNull="False" Name="dbName"
                        PropertyName="Value" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <table border="1" width="1000px">
                <tr>
                    <td style="text-align: center">
                        <asp:Label ID="lblTitle" runat="server" meta:resourcekey="lblTitle"  SkinID="title" 
                           ></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <TServerControl:TGridView ID="gvWFAgent" runat="server" AllowHoverEffect="False"
                            AllowHoverSelect="False" AllowPaging="True" AutoGenerateColumns="False" ShowFooterWhenEmpty="False"
                            ShowHeaderWhenEmpty="False" SkinID="pager" TotalRowCount="0" Width="100%" DataSourceID="dbWFAgent">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Button ID="btnRunAgent" CommandName="RunAgent" 
                                            meta:resourcekey="btnRunAgent" runat="server" 
                                            CommandArgument='<%# Bind("UID") %>' onclick="btnRunAgent_Click" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="UID"   meta:resourcekey="colUID"/>
                                <asp:BoundField DataField="emp_name"  meta:resourcekey="colemp_name" />
                                <asp:BoundField DataField="StartDate"  meta:resourcekey="colStartDate" DataFormatString="{0:yyyy/MM/dd HH:mm}" />
                                <asp:BoundField DataField="EndDate"   meta:resourcekey="colEndDate" DataFormatString="{0:yyyy/MM/dd HH:mm}" />
                            </Columns>
                        </TServerControl:TGridView>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
